package com.springboot.cloud.autoconfigure.config;

import com.springboot.cloud.autoconfigure.aop.SystemLogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>  </p>
 *
 * @author Bertram
 * @since 10/30/2019 2:19 PM
 */
@Configuration
@ConditionalOnClass(SystemLogAspect.class)
public class LogAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(SystemLogAspect.class)
    public SystemLogAspect sysLogAspect() {
        return new SystemLogAspect();
    }

}
